package com.app.micaihu.bean.infor;

import android.text.TextUtils;

import com.app.micaihu.bean.interactive.IDefriend;
import com.app.micaihu.configure.TypeConstant;

/**
 * Created by Guo on 2016/12/26.
 *
 *
 * 黑名单列表 的实体类
 *
 *
 */

public class BlacklistBean implements IDefriend{


    private String uid;
    private String nickName;
    private String signature;
    private String headPic;

    private String isBlack = "1";//是否在黑名单中 1是 0否
    private String vip;//加V状态 0不加v 1加v


    public boolean getVip() {
        return TextUtils.equals("1",vip);
    }

    public void setVip(String vip) {
        this.vip = vip;
    }


    public boolean getIsBlack() {
        return TextUtils.equals("1",isBlack);
    }

    public void setIsBlack(String isBlack) {
        this.isBlack = isBlack;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }



    @Override
    public String getIDefriendType() {
        if(getIsBlack()){
            return TypeConstant.CANCLE_OPRATION;

        }else{
            return TypeConstant.CONFIRM_OPRATION;

        }
    }


    @Override
    public boolean getIInBlacklist() {
        return getIsBlack();
    }

    @Override
    public void setInBlacklist(String inBlacklist) {
        setIsBlack(inBlacklist);
    }

    @Override
    public String getIToUid() {
        return getUid();
    }

    @Override
    public void setIToUid(String toUid) {
        this.uid = toUid;
    }
}
